package com.yufei.infoExtractor.context;

import java.util.HashMap;

import java.util.Map;

import com.yufei.infoExtractor.pfw.entity.Task;
import com.yufei.infoExtractor.util.CommonUtil;


/**
 * @author jasstion
   2012-11-23
 *
 */
public  class InfoExtractorContext {
private Map innerMap=new HashMap();
public Object get(String key){
	if(CommonUtil.isEmptyOrNull(key)){
		throw new IllegalArgumentException();
	}
	return innerMap.get(key);
	}
public void put(String key,Object value){
	if(CommonUtil.isEmptyOrNull(key)||value==null){
		throw new IllegalArgumentException();
	}
	innerMap.put(key, value);
}
public final Task getTask(){
	
	return null;
	
}


}
